package com.heima.pri02;

import java.io.*;

public class ZiFuHuanChongLiu {
    public static void main(String[] args) throws IOException {
        //字符缓冲流：BufferedWriter：将数据高效写出，BufferedReader:将数据高效读到内存中
        //字符缓冲输入流
        BufferedReader bi = new BufferedReader(new FileReader("day11\\a.txt"));
        //读取数据
        char[] chars = new char[1024];
        int len;
        while ((len = bi.read(chars)) != -1) {
            System.out.println(new String(chars, 0, len));
        }
        bi.close();
    }
}
